package com.woniu.p2p.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.woniu.p2p.excelservice.InRepayService;
import com.woniu.p2p.vo.UserRepayVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class InRepayListener extends AnalysisEventListener<UserRepayVo> {

    @Autowired
    InRepayService inRepayService;

    @Override
    public void invoke(UserRepayVo userRepayVo, AnalysisContext analysisContext) {
        inRepayService.readExcel(userRepayVo);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
